export interface LoginRequestData {
  /** admin 或 editor */
  // username: "admin" | "editor"
  username: string
  /** 密码 */
  password: string
}

export interface UserInfo {
  userId: number
  username: string
  realName: string
  roleType: number[]
  roleName: string[]
  tokenName: string
  tokenValue: string
  expireTime: number
}

export type LoginResponseData = ApiResponseData<UserInfo>
export type RolesResponseData = ApiResponseData<string[]>
